import request from '@/utils/request'

// 查询试剂信息列表
export function listReagent(query) {
  return request({
    url: '/instrument/reagent/list',
    method: 'get',
    params: query
  })
}

// 查询试剂信息详细
export function getReagent(id) {
  return request({
    url: '/instrument/reagent/' + id,
    method: 'get'
  })
}

// 新增试剂信息
export function addReagent(data) {
  return request({
    url: '/instrument/reagent',
    method: 'post',
    data: data
  })
}

// 修改试剂信息
export function updateReagent(data) {
  return request({
    url: '/instrument/reagent',
    method: 'put',
    data: data
  })
}

// 删除试剂信息
export function delReagent(id) {
  return request({
    url: '/instrument/reagent/' + id,
    method: 'delete'
  })
}

// 导出试剂信息
export function exportReagent(query) {
  return request({
    url: '/instrument/reagent/export',
    method: 'get',
    params: query
  })
}